package com.tobby.camel.camelinaction.chapter2.ftpjms;

import org.apache.camel.CamelContext;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.impl.DefaultCamelContext;

public class RouteBuilderExample {

	public static void main(String[] args) throws Exception {
		CamelContext context = new DefaultCamelContext();
		context.addRoutes(new RouteBuilder() {

			@Override
			public void configure() throws Exception {
				//from("aa").to("");
				System.out.println("aaaa");
			}
			
		});
		context.start();
		Thread.sleep(10000);
		context.stop();
	}
}
